﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Apps.Models.Common
{
    [Serializable]
    public class HtmlControlAttr
    {
        public HtmlControlAttr()
        {

        }

        public HtmlControlAttr(string _id)
        {
            id = _id;
            name = _id;
            value = "";
        }

        public HtmlControlAttr(string _id, string _name)
        {
            id = _id;
            name = _name;
            value = "";
        }

        public HtmlControlAttr(string _id, string _name, string _value)
        {
            id = _id;
            name = _name;
            value = _value;
        }

        public HtmlControlAttr(string _id, string _name,Dictionary<string,string> _data, string _value="")
        {
            id = _id;
            name = _name;
            value = _value;
            data = _data;
        }

        public string id { set; get; }

        public string name { set; get; }

        public string value { set; get; }

        public Dictionary<string,string> data { set; get; }
    }
}
